Linux webm002.cluster126.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
admin-menu-editor
/
customizables
/
Controls
/
/home/ariannadhf/www/wp-content/plugins/admin-menu-editor/customizables/Controls/SelectBox.php
<?php namespace YahnisElsts\AdminMenuEditor\Customizable\Controls; use YahnisElsts\AdminMenuEditor\Customizable\Rendering\Context; use YahnisElsts\AdminMenuEditor\Customizable\Rendering\Renderer; class SelectBox extends ChoiceControl { protected $type = 'select'; protected $koComponentName = 'ame-select-box'; public function renderContent(Renderer $renderer, Context $context) { $currentValue = $this->mainBinding->getValue(); $classes = array_merge(['ame-select-box-control'], $this->classes); list($optionHtml, $optionBindings) = ChoiceControlOption::generateSelectOptions( $this->options, $currentValue, $this->mainBinding ); //phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped echo $this->buildInputElement( $context, [ 'class' => $classes, 'style' => $this->styles, 'data-bind' => $this->makeKoDataBind(array_merge( $optionBindings, ['value' => $this->getKoObservableExpression($currentValue)] )), ], 'select' ); echo $optionHtml; //phpcs:enable echo '</select>'; } }